package com.tianfeng.huayi.service.impl;

import com.tianfeng.huayi.entity.RepairRecord;
import com.tianfeng.huayi.mapper.RepairRecordMapper;
import com.tianfeng.huayi.service.IRepairRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RepairRecordServiceImpl implements IRepairRecordService {

    @Autowired
    private RepairRecordMapper repairRecordMapper;

    @Override
    public RepairRecord selectRepairRecordByRecordId(Long recordId) {
        return repairRecordMapper.selectRepairRecordByRecordId(recordId);
    }

    @Override
    public List<RepairRecord> selectRepairRecordList(RepairRecord repairRecord) {
        return repairRecordMapper.selectRepairRecordList(repairRecord);
    }

    @Override
    public int insertRepairRecord(RepairRecord repairRecord) {
        return repairRecordMapper.insertRepairRecord(repairRecord);
    }
}
